{{extend "wiki_layout.html"}}
{{block content}}
<script type="text/javascript">
var OnDelete = function(pagename){
    return confirm("Do you realy want to delete " + pagename + "?");
};
</script>
{{if revision:}}
<div id="wiki-message">You are viewing rev #{{=revision}} modified at {{=rev_time}}</div>
{{pass}}
<div id="wiki-actions">
<a href="{{=url_for('wiki.views.wiki_page')}}">Home</a>
<a href="{{=url_for('wiki.views.wiki_edit', pagename=pagename)}}">Edit</a>
<a href="{{=url_for('wiki.views.wiki_delete', pagename=pagename)}}" onclick="return OnDelete('{{=pagename}}')">Delete</a>
<a href="{{=url_for('wiki.views.wiki_revision', pagename=pagename)}}">Revision</a>
</div>
<div id="wiki-content" class="clearfix">
{{<< content}}
</div>
{{end}}
{{block header}}<h1><a href="{{=url_for('wiki.views.wiki_page', pagename=pagename)}}">{{=title}}</a></h1>{{end}}
